import http from "@/api/axios";

//保险订单-审核通过-支持批量
export const passApplyApi = (data: { idList: string[]; insuranceFeeRatio?: number; insuranceAmount?: number }) => {
  return http({
    method: "post",
    url: "/base/biz/insuranceShipmentOrder/passApply",
    data
  });
};

//保险订单-驳回审核-支持批量
export const refuseApplyApi = (data: Array<string>) => {
  return http({
    method: "post",
    url: "/base/biz/insuranceShipmentOrder/refuseApply",
    data
  });
};

//保险订单-取消保险单-支持批量
export const cancelOrderApi = (data: Array<string>) => {
  return http({
    method: "post",
    url: "/base/biz/insuranceShipmentOrder/cancelOrder",
    data
  });
};

//导出保险订单excel
export const getInsuranceOrderExcelListApi = (data: InsuranceApproval.SearchParams | { idList: string[] }) => {
  return http({
    method: "post",
    url: "/export/biz/exportExcel/insuranceOrderExcel",
    data
  });
};
